package com.ruoyi.project.task.transfer.mapper;

import com.ruoyi.project.task.transfer.domain.TaskTransfer;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author Pathosis
 * @date 2020-09-19 14:31
 * @description:
 */
@Repository
public interface TaskTransferMapper {
    /**
     * 查询所有+分页
     * @param taskTransfer
     * @return
     */
    List<TaskTransfer> selectAllTaskTransfer(TaskTransfer taskTransfer);

    /**
     * 新增转移任务
     * @param taskTransfer
     * @return
     */
    int insertTaskTransfer(TaskTransfer taskTransfer);

    /**
     * 删除转移任务通过id
     * @param transferId
     * @return
     */
    int deleteTaskPostponeByIds(Long[] transferId);

    /**
     * 根据id查询TaskTransfer对象
     * @param transferId
     * @return
     */
    TaskTransfer selectTaskTransferById(Long transferId);

    /**
     * 修改转移任务数据
     * @param taskTransfer
     * @return
     */
    int updateTaskTransfer(TaskTransfer taskTransfer);
    /**
     * 审批通过
     * @param taskTransfer
     * @return
     */
    int updateTaskTransferByRatifyIsSuccess(TaskTransfer taskTransfer);

    /**
     * 根据missionid删除TaskTransfer对象
     * @param missionId
     * @return
     */
    int deleteTaskTransferByMissionId(Long[] missionId);
}
